package.path = ";..\\?.lua" .. package.path

require "heros_design"
require "skills"
require "monsters"

if not (type(heros)=="table") then
	heros = {}
end


heros.hero_str =
{
	cls = 1,
	name = 'S:Vincent',
	vit = {	b = 260,a = 26	},
	str = {	b = 270,a = 27	},
	agi = {	b = 150,a = 15	},
	int = {	b = 120,a = 12	},
	skills =
	{
		[1] = { id = 1, w = 75},
		[2] = { id = 2, w = 25},
	},
	ap = { b = -270 * 0.2, a = 0.2 },
	dp = { b = -270 * 0.2, a = 0.2 },

	tohit = { b = -150 * 1.8, a = 1.8 },
	tododge = { b = -150* 1.9, a = 1.9 },

	c = { b = 0, a = 13 },
	t = { b = 0, a = 10 },
	critical = 1.5
}
heros.hero_agi =
{
	cls = 2,
	name = 'A:Wizard',
	vit = {	b = 200,a = 20	},
	str = {	b = 150,a = 15	},
	agi = {	b = 280,a = 28	},
	int = {	b = 170,a = 17	},
	skills =
	{
		[1] = { id = 3, w = 50},
		[2]	= { id = 4, w = 50},
	},
	ap = { b = -280 * 0.2, a = 0.2 },
	dp = { b = -150 * 0.2, a = 0.2 },

	tohit = { b = -280 * 1.2, a = 1.2 },
	tododge = { b = -280* 1.2, a = 1.2 },

	c = { b = 0, a = 10 },
	t = { b = 0, a = 10 },
	critical = 1.5

}
heros.hero_int =
{
	cls = 3,
	name = 'I:Waking',
	vit = {	b = 170,a = 17	},
	str = {	b = 120,a = 12	},
	agi = {	b = 220,a = 22	},
	int = {	b = 290,a = 29	},
	skills =
	{
		[1]	= { id = 5, w = 25},
		[2]	= { id = 6, w = 75},
	},
	ap = { b = -290 * 0.2, a = 0.2 },
	dp = { b = -220 * 0.2, a = 0.2 },

	tohit = { b = -220 * 1.7, a = 1.7 },
	tododge = { b = -220* 1.3, a = 1.3 },

	c = { b = 0, a = 10 },
	t = { b = 0, a = 10 },
	critical = 1.5
}

heros[1] = heros.hero_str
heros[2] = heros.hero_agi
heros[3] = heros.hero_int

heros_name =
{
	[1] = "str",
	[2] = "agi",
	[3] = "int"
}


